/*
 * Activity.h
 *
 *  Created on: 17.02.2011
 *      Author: dis
 */

#ifndef ACTIVITY_H_
#define ACTIVITY_H_

class Activity {
private:
	Activity* subActivity;
	unsigned long id;
	char* name;
	unsigned long timestamp;
	int type;
	void setName(char* value);
public:
	Activity(unsigned long id,char* name,unsigned long timestamp,int type);
	Activity(unsigned long id,char* name,unsigned long timestamp,int type,Activity* sub);
	Activity* getSub(){return subActivity;}
	unsigned long getId(){return id;}
	int getType(){return type;}
	unsigned long getTimestamp(){return timestamp;}
	char* getName(){return name;}
	virtual ~Activity();

	virtual Activity* clone();
	bool equals(Activity* obj);
	void toJSON(char* buffer,int size);
};

#endif /* ACTIVITY_H_ */
